package com.joven.shelltest.enums;

import com.joven.shelltest.dto.MessageDto;
import lombok.Getter;

/**
 * @author wzj
 * @since 2024/11/26 11:21
 */
@Getter
public enum SingleEnum {
    /**
     * 单例
     */
    INSTANCE;

    private final MessageDto msg;

    SingleEnum() {
        msg = new MessageDto();
    }

    public String doSomething(String content) {
        msg.setMessage(content);
        msg.setDelay(1000L);
        return msg.toString();
    }

}
